package com.study.service.impl.activemq.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/11 12:43 下午
 */
// 方便测试临时注释
//@Component
public class MessageListener {

    @JmsListener(destination = "study")
    @SendTo("order.queue.id")
    public String receive(String id) {
        System.out.println("消费、发送短信" + id);
        return "new:" + id;
    }

    ///@JmsListener(destination = "order.queue.id")
}
